#ifndef __SPI__H__
#define __SPI__H__

#include "vbb_Utils.h"

typedef struct
{
    VBB_Pin pin_clk;
    VBB_Pin pin_miso;
    VBB_Pin pin_mosi;
    SPI_TypeDef * SPIx;
} VBB_SPI;

void vbb_SPI_Init(VBB_SPI * Spi, SPI_TypeDef * SPIx);
char vbb_SPI_WriteByte(VBB_SPI * Spi, char Byte);

#endif
